# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-fontmath
pkgver=0.6.0
pkgrel=0
pkgdesc="A set of objects for performing math operations on font data"
url="https://github.com/robotools/fontMath"
arch="noarch"
license="MIT"
depends="py3-fonttools python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
options="!check" # https://github.com/robotools/fontMath/issues/178
source="https://files.pythonhosted.org/packages/source/f/fontMath/fontMath-$pkgver.zip"
builddir="$srcdir/fontMath-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="db158460b0213fa2a5262a0f1b27db4690d0ae13162986ae27becb3cd56abdb1dcced9cf1b588f65732cc97fbd09dee2bbb4d731c9fdd64751d4ec0d159bbc22  fontMath-0.6.0.zip"
